package io.gitee.hechenl.fastiotreport.service.impl;

import io.gitee.hechenl.fastiotreport.domain.model.ConfigMetricGroup;
import io.gitee.hechenl.fastiotreport.mapper.ConfigMetricGroupMapper;
import io.gitee.hechenl.fastiotreport.service.IConfigMetricGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class ConfigMetricGroupServiceImpl implements IConfigMetricGroupService {

    @Autowired
    private ConfigMetricGroupMapper configMetricGroupMapper;

    @Override
    public List<ConfigMetricGroup> list() {
        return configMetricGroupMapper.selectList(null);
    }

    @Override
    public List<ConfigMetricGroup> list(List<Long> ids) {
        return configMetricGroupMapper.selectBatchIds(ids);
    }
}
